package world3d.world;

import javax.media.opengl.GL;
import javax.media.opengl.GL2;
import javax.media.opengl.GLAutoDrawable;

public abstract class Entity {
	protected GLAutoDrawable drawable;
	protected GL gl;
	protected GL2 gl2;
	private boolean _isInit = false;


	public void init(GLAutoDrawable glAutoDrawable) {
		this.drawable = glAutoDrawable;
		gl = drawable.getGL();
		gl2 = gl.getGL2();
	}

	public abstract void display();

	public void reshape(int x, int y, int width, int height){

	}

	public abstract void dispose();

	public boolean isInit() {
		return _isInit;
	}

	public void setIsInit() {
		_isInit = true;
	}
}
